package course6;

public class SiSheWuRu {
    public static void main(String[] args) {
        double a = 20.76;
        int b = (int) a;
        System.out.println(b);
        System.out.println(a);
        double c=0;
        c=a-b;
        if (c >=0.5) {
            b = b + 1;
            System.out.println("a四舍五入的值是" + b);
        }else{
            System.out.println("a四舍五入的值是"+b);
        }
    }
}
